package cn.com.tianpeidong.restaurantadmin.project.admin.pos.entity;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import static cn.com.tianpeidong.restaurantadmin.project.admin.pos.constant.PaymentConstant.UNPAY;

/**
 * @author tianpeidong
 * @version 创建时间: 19-6-2 下午1:15
 */
@Data
public class Payment implements Serializable {

    private Long id;
    private Long saleId;
    private String uuid;
    private Integer payWay;
    private BigDecimal shouldPay;
    private BigDecimal realPay;
    private BigDecimal change;
    private Date date;
    private Integer status;

    public Payment(){}

    public Payment(Long saleId, BigDecimal shouldPay) {
        this.saleId = saleId;
        this.shouldPay = shouldPay;
        this.status = UNPAY;
    }
}
